Skip to content

http2: add writableObjectMode and writableNeedDrain getters to Http2ServerResponse#63004

Closed
AmSach wants to merge 2 commits intonodejs:mainfrom
AmSach:fix/http2-writable-props
Closed

http2: add writableObjectMode and writableNeedDrain getters to Http2ServerResponse#63004
AmSach wants to merge 2 commits intonodejs:mainfrom
AmSach:fix/http2-writable-props

Conversation

@AmSach
Copy link
Copy Markdown

@AmSach AmSach commented Apr 28, 2026

Fixes #63000.

Http2ServerResponse was missing these two properties that exist on OutgoingMessage and are documented as returning boolean values.

Added getters mirroring the pattern already used for writableFinished, writableCorked, writableHighWaterMark, etc. in compat.js.

…erverResponse

Fixes nodejs#63000.

Http2ServerResponse was missing these two properties that exist on
OutgoingMessage and are documented as returning boolean values.

Added getters mirroring the pattern already used for writableFinished,
writableCorked, writableHighWaterMark, etc. in compat.js.
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http2
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added http2 Issues or PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. labels Apr 28, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.65%. Comparing base (85ae4cd) to head (1163881).
⚠️ Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/http2/compat.js 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #63004      +/-   ##
==========================================
- Coverage   89.66%   89.65%   -0.01%     
==========================================
  Files         707      707              
  Lines      219501   219517      +16     
  Branches    42087    42087              
==========================================
+ Hits       196807   196811       +4     
- Misses      14588    14590       +2     
- Partials     8106     8116      +10     
Files with missing lines Coverage Δ
lib/internal/http2/compat.js 96.76% <75.00%> (-0.18%) ⬇️

... and 31 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

These properties were added to Http2ServerResponse but had no assertions
in the existing test. Adding type checks to ensure they return booleans
and are accessible on the response object.

Refs: nodejs#63000
@AmSach AmSach closed this Apr 28, 2026
@AmSach AmSach deleted the fix/http2-writable-props branch April 28, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http2 Issues or PRs related to the http2 subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

http2: Http2ServerResponse missing writableObjectMode and writableNeedDrain

2 participants